﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Enterprise.Exceptions
{
    /// <summary>
    /// Error generated from Enterprise.Cms is handled from this class.
    /// </summary>
    public class Error : Exception
    {
        /// <summary>
        /// ctor for Error
        /// </summary>
        /// <param name="errormessage">The message to return</param>
        public Error(string errormessage): base(errormessage){}
    }

    /// <summary>
    /// Contains error messages
    /// In this way we can add error in any culture.
    /// Todo: Add cultured messages.
    /// </summary>
    public static class Message
    {
        public static string ConnectionStringIsMissing = "Connectionstring not found.";
        public static string UnknownError = "Unspecified error";
        public static string IdIsMissing = "There's no ID provided to execute this query.";
    }
    
}
